import {combineReducers} from 'redux'

let data = (data=[],action) => {
    switch (action.type){
        case 'ADD':
            return [...data,{
                id:Date.now(),
                title:action.title
            }]
    }
    return data
}
let reducer = combineReducers({
    data
})
export  default  reducer